PageInfo.register({"type": "plug","info": function(require) {
		
	var request = require( "/assets/js/components/common/request");
 

		var version = "/ntq/";
		
		var memory = {
			"ntqSysUser":version+"admin/sysUser",
			"ntqCompany":version+"admin/company",
			"ntqCompanyPosition":version+"admin/companyPosition",
			"ntqCompanyContactor":version+"admin/companyContactor",
			"ntqProvider":version+"provider",
			"ntqResumeDeal":version+"/admin/resumeDeal",
		}
		
	var FunUtil = {};



    FunUtil.login =  {
        login:function(data, success){
            request.post(version+"admin/login/login",data,success);
        },
    };
	
	FunUtil.ntqProvider ={
		getDictTypeCode:function(data, success){
		  	request.get(memory.ntqProvider+"/dictdata/getDictdata/dictTypeCode/"+data.dictTypeCode,{},success);
		},
		getArea:function(data, success){
		  	request.post(memory.ntqProvider+"/area/getArea",data,success);
		},
        ntqUpload:function(){
		    return (memory.ntqProvider+"/ntqUpload/uploadCompanyThumbImage");
        }


	 
	};
	FunUtil.resumeDeal = {
		query:function(data,success){
			request.post(memory.ntqResumeDeal+"/positions",data,success);
		},
		
		post:function(data,success){
			request.post(memory.ntqResumeDeal+"/dealResume",data,success);
		},
		get:function(data,success){
			request.get(memory.ntqResumeDeal+"/getResumeViewByDeliveryId/deliveryId/"+data.deliveryId+"/resumeType/"+data.resumeType,{},success);
		},
		
		
		
	}

	FunUtil.ntqSysUser =  {
		  add:function(data, success){
		  		request.post(memory.ntqSysUser+"/addNtqSysUser",data,success);
		  },
		  get:function(data, success){
		  		request.get(memory.ntqSysUser+"/getNtqSysUser/id/"+data.id,{},success);
		  },
		  query:function(data, success){
		  		request.post(memory.ntqSysUser+"/queryNtqSysUserByCondition",data,success);
		  },
		  update:function(data, success){
		  		request.post(memory.ntqSysUser+"/updateNtqSysUser",data,success);
		  },
          delete:function(data, success){
              request.get(memory.ntqSysUser+"/deleteNtqSysUser/ids/"+data.id,{},success);
          },
          change:function(data, success){
            request.get(memory.ntqSysUser+"/changeNtqUserStatus/id/"+data.id+"/isValid/"+data.isValid,{},success);
          },
		  reset:function(data, success){
            request.get(memory.ntqSysUser+"/resetNtqSysUserPassword/id/"+data.id,{},success);
          },
		 
		 



    };

    FunUtil.ntqCompany =  {
        add:function(data, success){
            request.post(memory.ntqCompany+"/addNtqCompany",data,success);
        },
        query:function(data, success){
            request.post(memory.ntqCompany+"/queryNtqCompanyByCondition",data,success);
        },
        get:function(data, success){
            request.get(memory.ntqCompany+"/getNtqCompanyById/id/"+data.id,{},success);
        },
        update:function(data, success){
            request.post(memory.ntqCompany+"/updateNtqCompany",data,success);
        },
        deletes:function(data, success){
            request.get(memory.ntqCompany+"/deleteNtqCompany/ids/"+data.id+"/status/"+data.status,{},success);
        },
		
		
		
    };


    FunUtil.ntqCompanyPosition =  {
        add:function(data, success){
            request.post(memory.ntqCompanyPosition+"/addNtqCompanyPosition",data,success);
        },
        query:function(data, success){
            request.post(memory.ntqCompanyPosition+"/queryCompanyPositionListByParam",data,success);
        },

        get:function(data, success){
            request.get(memory.ntqCompanyPosition+"/getCompanyPositionById/id/"+data.id,{},success);
        },
        update:function(data, success){
            request.post(memory.ntqCompanyPosition+"/updateNtqCompanyPosition",data,success);
        },
        changeStatus:function(data, success){
            request.get(memory.ntqCompanyPosition+"/disabledOrStartingNtqCompanyPosition/companyPositionId/"+data.companyPositionId+"/status/"+data.status,{},success);
        },




    };


    FunUtil.ntqCompanyContactor =  {
        add:function(data, success){
            request.post(memory.ntqCompanyContactor+"/addNtqCompanyContactor",data,success);
        },
        delete:function(data, success){
            request.get(memory.ntqCompanyContactor+"/deleteNtqCompanyContactor/ids/"+data.id,{},success);
        },

        get:function(data, success){
            request.get(memory.ntqCompanyContactor+"/getNtqCompanyContactorById/id/"+data.id,{},success);
        },
        update:function(data, success){
            request.post(memory.ntqCompanyContactor+"/updateNtqCompanyContactor",data,success);
        },

        query:function(data, success){

            request.get(memory.ntqCompanyContactor+"/queryNtqCompanyContactorListCompanyBaseId/companyBaseId/"+data.id,data,success);
        },

    };



 
	
		return  FunUtil;
}});